<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />



<link type="text/css" rel="stylesheet" href="<?php echo (MY_CONST_VAL); ?>Admin/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="<?php echo (MY_CONST_VAL); ?>Admin/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="<?php echo (MY_CONST_VAL); ?>Admin/css/font-awesome.min.css"/>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
<link href="http://cdn.staticfile.org/twitter-bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="http://cdn.staticfile.org/highlight.js/7.3/styles/github.min.css" rel="stylesheet" type="text/css" media="all"/>
    <style>
        body{padding-top:50px}.bs-navbar{background-color:#3aa9ff;border-color:#63b8f9}.bs-navbar .navbar-brand{color:#fff}.bs-navbar .navbar-nav>li>a{color:#d4eafc}.bs-head{background-color:#3aa9ff;text-align:left;padding:50px 0}.bs-head h1{font-size:60px;color:#fff}.bs-head .lead{font-size:30px;color:#e8eeff}.bs-footer{padding-top:40px;padding-bottom:30px;margin-top:100px;color:#777;text-align:left;border-top:1px solid #e5e5e5}.bs-footer p{margin-bottom:0}.bs-sidebar{width:180px;background-color:#f7f7f7;margin-top:30px}.bs-sidebar.affix{position:fixed;top:90px}.bs-sidebar .nav>.active>a{font-weight:bold;background-color:transparent;border-left:1px solid #428bca}.page-header{margin:40px 0 20px}.page-header h2{padding-top:80px;margin-top:-45px}.demo{padding:20px;margin:20px 0;background-color:#f7f7f7}.demo p{font-size:15px}.arrow{display:inline-block;overflow:hidden;border-left:5px dashed transparent;border-bottom:5px dashed transparent;border-right:5px dashed transparent;border-top:5px solid #fff;vertical-align:middle}.arrow2{border-left:5px dashed transparent;border-bottom:5px dashed transparent;border-top:5px dashed transparent;border-right:5px solid #ccc}.arrow3{border-top:5px dashed transparent;border-bottom:5px dashed transparent;border-right:5px dashed transparent;border-left:5px solid #ccc}.customBootstrap .pagination>li>a{margin-right:5px;border-radius:2px;background:#fff;color:#333;border-color:#ccc;padding:6px 15px}.customBootstrap .pagination>li>a:hover,.customBootstrap .pagination>li>a:focus{color:#fff;background:#fb9400;border-color:#fb9400}.customBootstrap .pagination>.active>a,.customBootstrap .pagination>.active>a:hover,.customBootstrap .pagination>.active>a:focus{color:#fff;background:#fb9400;border-color:#fb9400}.customBootstrap .pagination .arrow2{margin:3px 8px 5px 0}.customBootstrap .pagination a:hover .arrow2{border-right-color:#fff}.customBootstrap .pagination .arrow3{margin:3px 0 5px 8px}.customBootstrap .pagination a:hover .arrow3{border-left-color:#fff}.pagination2{height:30px;margin:10px 0}.pagination2 a{text-decoration:none;border:solid 1px #c0d3e6;color:#333;border-left-width:0;height:24px!important}.pagination2 a{height:24px!important;display:block;float:left;padding:0 10px;text-align:center;line-height:24px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.pagination2 .active{background-color:#6babdd;color:#fff;padding:0 10px;border:solid 1px #5c95c1}.pagination2 .prev{border:solid 1px #c0d3e6}.pagination2 .next{border-left-width:0;border-right-width:1px}.pagination2 .active.prev,.pagination2 .active.next{color:#dcdcdc;border-color:#efefef;background:#fff}.pagination2 a:hover{background-color:#cde4f8}.pagination2 .active:hover{background-color:#6babdd}.pagination2 a.disabled{display:none}.pagination4 .page a,.pagination4 .page a:hover{width:100px;text-align:center;border:1px solid #ddd;color:#999;background-color:#fff!important}pre code{background-color:transparent}
    </style>
<script>

$().ready(function() {
// 在键盘按下并释放及提交后验证提交表单
  $("#signupForm").validate({
	    rules: {
	      uname: {
	        required: true,
	        minlength: 5
	      },
	      pwd: {
	        required: true,
	        minlength: 5
	      },
	      aniname: {
	        required: true,
	        minlength: 2,
	      }, 
	      
	    },
	    messages: {
	  
	      uname: {
	        required: "请输入用户名",
	        minlength: "用户名必需由5个字母组成"
	      },
	      pwd:{
	        required: "请输入密码",
	        minlength: "密码长度不能小于 5 个字母"
	      },
	      aniname:{
	        required: "请输入昵称",
	        minlength: "昵称长度不能小于 2个字母",
	      },
	   
	    
	    }
	});
});
</script>


<title>管理员列表</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span> 管理员管理 <span class="c-gray en">&gt;</span> 管理员列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">

  <div class="text-c" id=page data-page="<?php echo I(page);?>">
    <form class="Huiform" method="post" id="signupForm" action="<?php echo U('add');?>" target="_self">
      <input type="text" name="uname" placeholder="帐号" autocomplete="off" value="" class="input-text">
      <input type="password" name="pwd"  id="pwd" placeholder="密码" autocomplete="off" value="" class="input-text">
      <input type="text" name="aniname" placeholder="昵称" autocomplete="off" value="" class="input-text">
      <select class="select" name="role" size="1">
      
      <?php if(is_array($info)): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo['zid']); ?>"><?php echo ($vo['zname']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select>
      <input type="submit" class="btn btn-success" value="添加" />
    </form>
  </div>
  <div class="cl pd-5 bg-1 bk-gray mt-20">
    <span class="l"><a href="javascript:;" onClick="datadel()" class="btn btn-danger radius"><i class="icon-trash"></i> 批量删除</a></span>
    <span class="r">共有数据：<strong>54</strong> 条</span>
  </div>
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr>
        <th scope="col" colspan="10">员工列表</th>
      </tr>
      <tr class="text-c">
        <th width="25"><input type="checkbox" name="" value=""></th>
        <th width="40">ID</th>
        <th width="80">登陆名</th>
         <th width="80">昵称</th>
        <th width="80">角色</th>
        <th width="130">加入时间</th>
        <th width="100">是否已启用</th>
        <th width="70">操作</th>
      </tr>
    </thead>
    <tbody id="test">
 


    </tbody>
  </table>
  
   <div class="demo customBootstrap">
                <p id="demo2-text"></p>
                <ul id="demo2" class="pagination"></ul>
            </div>
</div>
	
	<script type="text/javascript" src="http://cdn.staticfile.org/jquery/1.10.1/jquery.min.js"></script>
	<script type="text/javascript" src="http://cdn.staticfile.org/twitter-bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="http://cdn.staticfile.org/highlight.js/7.3/highlight.min.js"></script>
	<script type="text/javascript" src="<?php echo (MY_CONST_VAL); ?>Admin/js/jqPaginator.min.js"></script>
	<script type="text/javascript">
	    $(function () {
	     
	        $("#demo2").jqPaginator({
	        	
	        	
	            totalPages: <?php echo ($data1); ?>,
	            visiblePages:10,
	            currentPage: 1,
	            first: '<li class="first" ><a href="javascript:void(0);">首页<\/a><\/li>',
	            prev: '<li class="prev" ><a href="javascript:void(0);"><i class="arrow arrow2"><\/i>上一页<\/a><\/li>',
	            next: '<li class="next"><a href="javascript:void(0);">下一页<i class="arrow arrow3"><\/i><\/a><\/li>',
	            last: '<li class="last" ><a href="javascript:void(0);">末页<\/a><\/li>',
	            page: '<li class="page"}}"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
	            onPageChange: function (n) {
	                $("#demo2-text").html("当前第" + n + "页");
	                
	            	$.get('<?php echo U("cdminlist");?>',{p:n},function(data){
	    	    		
	    	    		$('#test').html(data);
	    	    		
	    	    	},'json');
	                
	            }
	        });
	       
	  
	     
	        setTimeout(function () {
	            var n = $(".bs-sidebar");
	            n.affix({
	                offset: {
	                    top: 258
	                }
	            });
	        }, 100);
	        hljs.initHighlightingOnLoad()
	    });
	    
	    $('#demo2 li').click(function(){
	    	var p=$(this).attr('data-page');
	    	$.get('{:U("cdminlist")}',{p:p},function(data){
	    		
	    		$('#test').html(data);
	    		
	    	},'json');
	    	
	    	
	    });  
	    
	    
	    
	    
	</script>





</body>
</html>